﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using System.Transactions;

using LINQtoSQLDataProvider;
using System.Data.SqlClient;

namespace Dragon.Prototype1.Service
{
    public class UserService
    {
        public static List<usp_User_GetUsersResult> GetUsers(int pageIndex, int pageSize, string sortString, string whereString)
        {
            using (WMSDataContext db = new WMSDataContext())
            {
                return db.usp_User_GetUsers(pageSize, pageIndex, sortString, whereString).ToList<usp_User_GetUsersResult>();
            }
        }
    }
}
